package treazy.ultimate.stats;

import java.util.ArrayList;

public class Team {
	private int _id;
	private String _name;
	private ArrayList<Player> _roster;
	private int _wins;
	private int _losses;
	private int _pointsFor;
	private int _pointsAgainst;
	private ArrayList<Game> _games;
	
	// Default constructor
	public Team(){
		
	}
	
	// Constructor for team creation
	public Team(String name) {
		setName(name);
		setWins(0);
		setLosses(0);
		setPointsFor(0);
		setPointsAgainst(0);
	}
	
	// Constructor for team retrieval
	public Team(String name, int wins, int losses, int pointsFor, int pointsAgainst){
		setName(name);
		setWins(wins);
		setLosses(losses);
		setPointsFor(pointsFor);
		setPointsAgainst(pointsAgainst);
	}

	public int get_id() {
		return _id;
	}

	public void set_id(int _id) {
		this._id = _id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return _name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this._name = name;
	}

	/**
	 * @return the wins
	 */
	public int getWins() {
		return _wins;
	}

	/**
	 * @param wins the wins to set
	 */
	public void setWins(int wins) {
		this._wins = wins;
	}

	/**
	 * @return the losses
	 */
	public int getLosses() {
		return _losses;
	}

	/**
	 * @param losses the losses to set
	 */
	public void setLosses(int losses) {
		this._losses = losses;
	}

	/**
	 * @return the pointsFor
	 */
	public int getPointsFor() {
		return _pointsFor;
	}

	/**
	 * @param pointsFor the pointsFor to set
	 */
	public void setPointsFor(int pointsFor) {
		this._pointsFor = pointsFor;
	}

	/**
	 * @return the pointsAgainst
	 */
	public int getPointsAgainst() {
		return _pointsAgainst;
	}

	/**
	 * @param pointsAgainst the pointsAgainst to set
	 */
	public void setPointsAgainst(int pointsAgainst) {
		this._pointsAgainst = pointsAgainst;
	}

	public ArrayList<Player> getRoster() {
		return _roster;
	}

	public void setRoster(ArrayList<Player> _roster) {
		this._roster = _roster;
	}
	
}
